﻿@using Grand.Domain.Media
@model DocumentModel
@{
    ViewData["DownloadType"] = DownloadType.Document;
    ViewData["ReferenceId"] = Model.Id;
}
<vc:admin-widget widget-zone="document_details_info_top" additional-data="Model"/>
<div class="form-horizontal">
    <div class="form-body">
        <div class="form-group">
            <admin-label asp-for="Number"/>
            <div class="col-md-9 col-sm-9">
                <admin-input asp-for="Number"/>
                <span asp-validation-for="Number"></span>
            </div>
        </div>
        <div class="form-group">
            <admin-label asp-for="Name"/>
            <div class="col-md-9 col-sm-9">
                <admin-input asp-for="Name"/>
                <span asp-validation-for="Name"></span>
            </div>
        </div>
        <div class="form-group">
            <admin-label asp-for="Description"/>
            <div class="col-md-9 col-sm-9">
                <admin-input asp-for="Description" asp-template="Editor"/>
                <span asp-validation-for="Description"></span>
            </div>
        </div>
        <div class="form-group">
            <admin-label asp-for="SeId"/>
            <div class="col-md-9 col-sm-9">
                <admin-select asp-for="SeId" asp-items="Model.AvailableSelesEmployees"/>
                <span asp-validation-for="SeId"></span>
            </div>
        </div>
    </div>
</div>
<div class="form-horizontal">
    <div class="form-body">
        <div class="form-group">
            <admin-label asp-for="Link"/>
            <div class="col-md-9 col-sm-9">
                <admin-input asp-for="Link"/>
                <span asp-validation-for="Link"></span>
            </div>
        </div>
        <div class="form-group">
            <admin-label asp-for="DocumentTypeId"/>
            <div class="col-md-9 col-sm-9">
                <admin-select asp-for="DocumentTypeId" asp-items="Model.AvailableDocumentTypes"/>
                <span asp-validation-for="DocumentTypeId"></span>
            </div>
        </div>
        <div class="form-group">
            <admin-label asp-for="StatusId"/>
            <div class="col-md-4 col-sm-6">
                <admin-select asp-for="StatusId" asp-items="EnumTranslationService.ToSelectList((DocumentStatus)Model.StatusId)"/>
            </div>
        </div>
        <div class="form-group">
            <admin-label asp-for="ReferenceId"/>
            <div class="col-md-4 col-sm-6">
                <admin-select asp-for="ReferenceId" asp-items="EnumTranslationService.ToSelectList((Reference)Model.ReferenceId)"/>
            </div>
        </div>
        <div class="form-group object-reference">
            <admin-label asp-for="ObjectId"/>
            <div class="col-md-9 col-sm-9">
                <admin-input asp-for="ObjectId"/>
                <span asp-validation-for="ObjectId"></span>
            </div>
        </div>
        <div class="form-group">
            <admin-label asp-for="Published"/>
            <div class="col-md-9 col-sm-9">
                <label class="mt-checkbox mt-checkbox-outline control control-checkbox">
                    <admin-input asp-for="Published"/>
                    <div class="control__indicator"></div>
                </label>
                <span asp-validation-for="Published"></span>
            </div>
        </div>
        <div class="form-group">
            <admin-label asp-for="CustomerGroups"/>
            <div class="col-md-9 col-sm-9">
                <admin-input asp-for="CustomerGroups"/>
                <span asp-validation-for="CustomerGroups"></span>
            </div>
        </div>
        <div class="form-group">
            <admin-label asp-for="Stores"/>
            <div class="col-md-9 col-sm-9">
                <admin-input asp-for="Stores"/>
                <span asp-validation-for="Stores"></span>
            </div>
        </div>
        <div class="form-group">
            <admin-label asp-for="DownloadId"/>
            <div class="col-md-9 col-sm-9">
                <admin-input asp-for="DownloadId"/>
                <span asp-validation-for="DownloadId"></span>
            </div>
        </div>
        <div class="form-group">
            <admin-label asp-for="DisplayOrder"/>
            <div class="col-md-9 col-sm-9">
                <admin-input asp-for="DisplayOrder"/>
                <span asp-validation-for="DisplayOrder"></span>
            </div>
        </div>
        <div class="form-group">
            <admin-label asp-for="Flag"/>
            <div class="col-md-9 col-sm-9">
                <admin-input asp-for="Flag"/>
                <span asp-validation-for="Flag"></span>
            </div>
        </div>
        <div class="form-group">
            @{
                ViewData["Reference"] = "Document";
                ViewData["ObjectId"] = Model.Id;
            }
            <admin-label asp-for="PictureId"/>
            <div class="col-md-9 col-sm-9">
                <admin-input asp-for="PictureId"/>
                <span asp-validation-for="PictureId"></span>
            </div>
        </div>
    </div>
</div>
<vc:admin-widget widget-zone="document_details_info_bottom" additional-data="Model"/>